package com.example.mapper;

import com.example.domain.Comment;
import com.example.domain.LeaveMessage;
import com.example.domain.vo.CommentVo;
import com.example.domain.vo.CultureProjectCategoryVo;
import com.example.domain.CultureProject;
import com.example.domain.vo.LeaveMessageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface CultureCommunityMapper {
    List<CultureProject> queryCulture(CultureProject cultureProject);

    List<CultureProjectCategoryVo> queryCultureCategory();

    List<String> queryImgUrlByCultureId(Long id);

    List<String> queryVideoUrlByCultureId(Long id);

    CultureProject queryCultureById(Long id);

    int submitLeaveMessage(LeaveMessage leaveMessage);

    List<LeaveMessageVo> queryLeaveMessage(LeaveMessageVo leaveMessageVo);

    int addComments(Comment comment);

    List<CommentVo> getCommentsByCultureId(Long cultureId);

    int removeComments(Long commentId);

    Comment queryCommentById(Long commentId);

    int updateComment(Comment comment);

    CommentVo getCommentsMaxLikes(Long cultureId);
}
